import { registerRpcMethod, type TRpcMethod } from "./core";

const hello: TRpcMethod = async (req, res, next) => {
  req.data = "Hello World!";
  next();
};

registerRpcMethod([
  {
    name: hello.name, // 方法名称
    method: hello, // 方法实现
    desc: "// Say hello", //jsdoc 风格的注释
    auth: false, // 是否需要验证
  },
]);
